package com.example.medical_delivery_system.dao;

import com.example.medical_delivery_system.entity.User;
import org.apache.ibatis.annotations.Param;

/**
 * BelongsProject: medical_delivery_system
 * Author: Kotoba Trily
 * CreateTime: 2022/12/25 17:30
 * Description:
 * Version: 1.0
 */


public interface DeliveryLoginMapper {
    int insert(User record);

    int insertSelective(User record);

    /**
     * 登陆方法
     *
     * @param userName
     * @param password
     * @return
     */
    User login(@Param("userName") String userName, @Param("password") String password);

    User selectByPrimaryKey(Long adminUserId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}